package com.springboot.cloud.sysadmin.organization.entity.form;

import com.springboot.cloud.common.web.entity.form.BaseForm;
import com.springboot.cloud.sysadmin.organization.entity.po.DictData;
import com.springboot.cloud.sysadmin.organization.entity.po.Notice;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@ApiModel
@Data
public class NoticeForm extends BaseForm<Notice> {

    @NotBlank(message = "通知标题不能为空")
    @ApiModelProperty(value = "通知标题")
    private String title;

    @ApiModelProperty(value = "显示顺序")
    private int orderNum;

    @NotBlank(message = "通知类型不能为空")
    @ApiModelProperty(value = "通知类型")
    private String type;

    @ApiModelProperty(value = "通知内容")
    private String content;

    @ApiModelProperty(value = "状态（0正常 1停用）")
    private String status = "0";

    @ApiModelProperty(value = "状态（0正常 1停用）")
    private String deleted = "N";

    @ApiModelProperty(value = "通知描述")
    private String description;

}
